<?php
class settingController extends adminController{

	public function index(){
		$this->themes_list=model('setting')->themes_list();
		$this->tpl_list=model('setting')->tpl_list();
		$this->show();
	}

	//保存配置文件
	public function save_config(){
		$config = in($_POST); //接收表单数据
        model('setting')->save($config);
		$this->msg('网站配置成功！');
	}

}